package com.hyz.pkg.pojo;


/**
 * @author HGD
 * @date 2022/9/24 0:02
 */
public enum AssetStatus implements KeyValueEnum {
    /*
     * unassigned(0, "未分库");
     * lock(1, "上锁"),
     * unlock(2, "未上锁"),
     * borrow(3, "资产借用"),
     * allocated(4, "资产调拨"),
     * retired(5, "资产报废"),
     * xxx(6, "资产审批中")
     * xxx(7, "资产有冲突")
     * */
    UNASSIGNED(0, "unassigned"),
    LOCK(1, "lock"),
    UNLOCK(2, "unlock"),
    BORROW(3, "borrow"),
    ALLOCATED(4, "allocated"),
    RETIRED(5, "retired");

    private final Integer key;
    private final String value;

    AssetStatus(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public int getKey() {
        return key;
    }

    @Override
    public String getValue() {
        return value;
    }
}
